package com.zhouheng.springbootdesignpattern.adapterpattern;

public class Client {

    public static void main(String[] args) {
        AudioPlayer audioPlayer = new AudioPlayer();
        // 本来就支持的mp3
        audioPlayer.play("mp3", "beyond the horizon.mp3");

        // 适配器类扩展的mp4和vlc
        audioPlayer.play("mp4", "alone.mp4");
        audioPlayer.play("vlc", "far far away.vlc");

        // 没有适配的avi
        audioPlayer.play("avi", "mind me.avi");
    }

}
